﻿using Hotel.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.IServices
{
    public interface IRBACRepository
    {
        Task<bool> RegisterAsync(User users, List<UserRoleInfo> list);

        Task<bool> UpDateUserInfoAsync(User users, List<UserRoleInfo> list);

        //添加角色权限

        Task<bool> AddRoleAsync(RoleInfo role, List<RolePermisstionInfo> list);

        //修改角色权限
        Task<bool> UpDataRoleAsync(RoleInfo role, List<RolePermisstionInfo> list);
    }
}
